import requests;

url = "https://xy111x177x19x34xy240ey95dy802y400yy68xy.mcdn.bilivideo.cn:4483/upgcxcode/94/62/28684586294/28684586294-1-100023.m4s?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1741852266&gen=playurlv2&os=mcdn&oi=2346850715&trid=0000a84e4ed111f745e68b5a7d6e0f016f6eu&mid=504956959&platform=pc&og=hw&upsig=4131eea8835777701868a76453382dd7&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform,og&mcdnid=50017744&bvc=vod&nettype=0&orderid=0,3&buvid=98787287-207F-CCB5-64BD-B0EC03CB2E4990950infoc&build=0&f=u_0_0&agrr=0&bw=38803&logo=A0020000"

header = {
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36',
    'referer': 'https://www.bilibili.com/video/BV1qj9nYcEDr/?spm_id_from=333.1007.tianma.5-3-17.click&vd_source=4cc37702b927191a1e4b454f0995ed47'}

res = requests.get(url, headers=header)
print(res.status_code)

open('视频.mp4','wb').write(res.content)
